import { Injectable } from '@angular/core';
import { Observable, Subject } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class ReportEntityDataService {
  private entitySubject = new Subject<ReportReply>();
  /**
   * 举报实体底部抽屉Subject服务
   */
  constructor() { }

  public query(): Observable<ReportReply> {
    return this.entitySubject.asObservable();
  }

  public send(replyId: number, replyFloor: number): void {
    this.entitySubject.next({ replyId: replyId, replyFloor: replyFloor });
  }
}
export interface ReportReply {
  replyId: number,
  replyFloor: number
}